<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
  <head>

    <title>My JSP 'periodGame.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  <link rel="stylesheet" href="../css/style.css" type="text/css"></link>
   <script type="text/javascript">
      function showDiv(id){
       document.getElementById(id).style.display="block";
      }
      function disDiv(id){
       document.getElementById(id).style.display="none";
      }
   </script>
  </head>
  
  <body>
    <input type="button" value="添加游戏期数" onclick="showDiv('createDiv')"/>
    <div>
       <table class="query_form_table" width="60%">
         <tr>
           <td>编号</td>
           <td>期号</td>
           <td>开始投注时间</td>
           <td>游戏桌</td>
         </tr>
         <s:iterator value="pager.data">
           <tr>
             <td>
               <s:property value="pgno"/>
             </td>
             <td><s:property value="pgnum"/></td>
             <td><s:property value="periodTime"/></td>
             <td><s:property value="gameTable.name"/></td>
           </tr>
         </s:iterator>
       </table>
    </div>
    <div id="createDiv" style="display: none;">
    <form action="/newbingo/test/PeriodGame_create.action" method="post">
        <table>
           <tr>
             <td>期号：</td>
             <td><input name="periodGame.pgnum" /></td>
           </tr>
           <tr>
             <td>开始投注时间：</td>
             <td><input name="periodGame.periodTime"/></td>
           </tr>
           <tr>
             <td>所属游戏桌：</td>
             <td><input name="periodGame.gameTable.gtno" value="${gameTable.gtno}"/></td>
           </tr>
        </table>
        <input type="submit" value="提 交"/>&nbsp;&nbsp;<input type="button" onclick="disDiv('createDiv')" value="取 消"/>
    </form>
    </div>

    </table>
  </body>
</html>
